package ro.myApp.articles.entities;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.hibernate.validator.NotNull;

@Entity
@DiscriminatorValue("TR")
public class Translation extends Publication {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3296563146766418002L;

	@ManyToOne(fetch=FetchType.LAZY)
	@NotNull
	private Publication publication;
	
	public Publication getPublication() {
		return publication;
	}
	
	public void setPublication(Publication publication) {
		this.publication = publication;
	}
	
}